<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录成功</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            text-align: center;
        }
        .success-container {
            background-color: white;
            padding: 30px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            max-width: 500px;
        }
        h1 {
            color: #4CAF50;
        }
        .countdown {
            font-size: 18px;
            margin: 20px 0;
        }
        .manual-link {
            margin-top: 20px;
        }
        a {
            color: #4CAF50;
            text-decoration: none;
        }
        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="success-container">
        <h1>登录成功！</h1>
        <p>您已成功登录系统</p>
        <div class="countdown" id="countdown">
            页面将在 <span id="seconds">5</span> 秒后自动跳转到首页...
        </div>
        <div class="manual-link">
            如果页面没有自动跳转，请 <a href="index.html">点击这里</a>
        </div>
    </div>

    <script>
        // 设置跳转时间（秒）
        var seconds = 5;
        
        // 获取显示秒数的元素
        var countdownElement = document.getElementById('seconds');
        
        // 更新倒计时显示
        var countdown = setInterval(function() {
            seconds--;
            countdownElement.textContent = seconds;
            
            // 当倒计时结束时跳转
            if(seconds <= 0) {
                clearInterval(countdown);
                window.location.href = 'index.html';
            }
        }, 1000);
    </script>
</body>
</html>